﻿using System.ComponentModel.DataAnnotations;
using HengTong.Model.Services;

namespace HengTong.Model.Request;

public class WechatBindByMobileRequest
{
    
    [Required(ErrorMessage = "手机号不能为空")]
    [RegularExpression(@"^1\d{10}$", ErrorMessage = "手机号格式不正确")]
    public string Mobile { get; set; }

    [Required(ErrorMessage = "短信验证码不能为空")]
    public string SmsCode { get; set; }
    
    [Required(ErrorMessage = "WechatKey不能为空")]
    public string WechatKey { get; set; }
}